/**
 * 
 */
package com.ktgj.pay.phoneSound;

import java.util.LinkedList;
import java.util.List;

import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.NodeList;

/**
 * @author cai.hongzhi
 *
 */
public class WebCatXmlImpl extends BaseXml {
	
	public WebCatXmlImpl(){}
	public WebCatXmlImpl(Document doc){
		OrderDetail = new LinkedList<SimpleOrder>();
		NodeList list = doc.getElementsByTagName("OrderDetail");
		for (int i = 0; i < list.getLength(); i++) {
			Element item = (Element)list.item(i);
			SimpleOrder order = new SimpleOrder();
			order.setAccountNo(ApiV2Util.getNodeValue("DetailAccountNo", item));
			order.setMerchantName(ApiV2Util.getNodeValue("DetailMerchantName", item));
			order.setAmount(ApiV2Util.getNodeValue("DetailAmount", item));
			order.setDescription(ApiV2Util.getNodeValue("DetailDescription", item));
			order.setNeedCheck(ApiV2Util.getNodeValue("DetailNeedCheck", item));
			order.setOrderTime(ApiV2Util.getNodeValue("DetailOrderTime", item));
			order.setOrderState(ApiV2Util.getNodeValue("DetailOrderState", item));
			order.setRemark(ApiV2Util.getNodeValue("DetailRemark", item));
			order.setOrderNo(ApiV2Util.getNodeValue("DetailOrderNo", item));
			OrderDetail.add(order);
		}
	}

	private static final long serialVersionUID = -2568267730209370848L;
	private String BindIDType = "";
	private String OpenId = "";
	private String MobileNo = "";
	private String BindStatus = "";
	private String MD5SmsCode = "";
	private String QueryStartTime = "";
	private String QueryEndTime = "";
	private List<SimpleOrder> OrderDetail = null;
	private String Photo = "";
	private String NotifyUrl = "";
	public String getBindIDType() {
		return BindIDType;
	}
	public void setBindIDType(String bindIDType) {
		BindIDType = bindIDType;
	}
	public String getOpenId() {
		return OpenId;
	}
	public void setOpenId(String openId) {
		OpenId = openId;
	}
	public String getMobileNo() {
		return MobileNo;
	}
	public void setMobileNo(String mobileNo) {
		MobileNo = mobileNo;
	}
	public String getBindStatus() {
		return BindStatus;
	}
	public void setBindStatus(String bindStatus) {
		BindStatus = bindStatus;
	}
	public String getMD5SmsCode() {
		return MD5SmsCode;
	}
	public void setMD5SmsCode(String mD5SmsCode) {
		MD5SmsCode = mD5SmsCode;
	}
	public String getQueryStartTime() {
		return QueryStartTime;
	}
	public void setQueryStartTime(String queryStartTime) {
		QueryStartTime = queryStartTime;
	}
	public String getQueryEndTime() {
		return QueryEndTime;
	}
	public void setQueryEndTime(String queryEndTime) {
		QueryEndTime = queryEndTime;
	}
	public List<SimpleOrder> getOrderDetail() {
		return OrderDetail;
	}
	public String getPhoto() {
		return Photo;
	}
	public void setPhoto(String photo) {
		Photo = photo;
	}
	public String getNotifyUrl() {
		return NotifyUrl;
	}
	public void setNotifyUrl(String notifyUrl) {
		NotifyUrl = notifyUrl;
	}
}
